import request from '@/utils/request'

export const getList = params => request({ url: '/account/list', method: 'GET', params })

export const add = data => request({ url: '/account/add', method: 'POST', data })

export const edit = data => request({ url: '/account/edit', method: 'PUT', data })

export const remove = ids => request({ url: '/account/remove', method: 'DELETE', data: { ids } })

export const editPassword = data => request({ url: '/account/edit/password', method: 'PUT', data })
